<template>
    <diV class="person">
    <el-descriptions class="margin-top" title="反馈详情" :column="1" :size="size" border :data="survey" style="text-align: center;">
    
    <el-descriptions-item>
      <template slot="label">
        <i class="el-icon-user"></i>
        反馈人
      </template>
      {{ survey.name }}
    </el-descriptions-item>
    <el-descriptions-item>
      <template slot="label">
        <i class="el-icon-date"></i>
        反馈时间
      </template>
      {{ survey.time }}
    </el-descriptions-item>

    <el-descriptions-item>
      <template slot="label">
        <i class="el-icon-tickets"></i>
        反馈内容
      </template>
      {{ survey.content }}
    </el-descriptions-item>
    <el-descriptions-item>
      <template slot="label">
        <i class="el-icon-notebook-2"></i>
       反馈建议
      </template>
      {{ survey.suggestion }}
    </el-descriptions-item>
  </el-descriptions>
  </diV>
  </template>
  
  <style>
    .el-table .warning-row {
      background: oldlace;
    }
  
    .el-table .success-row {
      background: #f0f9eb;
    }
  </style>
  
  <script>
  
    export default {
      methods: {
        tableRowClassName({row, rowIndex}) {
          if (rowIndex === 1) {
            return 'warning-row';
          } else if (rowIndex === 3) {
            return 'success-row';
          }
          return '';
        }
      },
    //   created:function(){
    //    this.$http.get("/user/findAll").then((response)=>{
    //     this.survey = response.data
    //   })
    // },
      data() {
        return {
          survey: []
        }
      }
    }
  </script>